package com.zj.customeasywebview

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.zj.easywebview.RealEasyWebview
import com.zj.easywebview.util.WebUtils

class MainActivity : AppCompatActivity() {
    lateinit var  webView: RealEasyWebview
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        webView = findViewById(R.id.webview)
        webView.loadUrl("file:////android_asset/index.html")
    }

    override fun onDestroy() {
        super.onDestroy()
        WebUtils.clearWebview(webView.webView)
    }
}